package org.manusoft.refill.domain;
import java.io.Serializable;
import java.math.BigInteger;
import java.sql.Date;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

@Entity
@Table(name="t_driver_details_rf")
public class TDriverDetailsRf implements Serializable {
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name="DRIVER_ID")
	private int driverId;

	@Column(name="DRIVER_NAME")
	private String driverName;

	@Column(name="DRIVER_DL_NO",unique=true)
	private String driverDlNo;

	@Column(name="DRIVER_DL_EXP_DATE")
	private Date driverDlExpDate;

	@Column(name="DRIVER_ADDRESS")
	private String driverAddress;

	@Column(name="DRIVER_MOBILE_NO")
	private BigInteger driverMobileNo;

	@Column(name="IS_BLACKLISTED",columnDefinition = "TINYINT(1)")
	private boolean isBlacklisted;

	@OneToMany(mappedBy="driverId")
	private Set<TRefillingDetailsRf> tRefillingDetailsRfCollection;

	private static final long serialVersionUID = 1L;

	public TDriverDetailsRf() {
		super();
	}

	public int getDriverId() {
		return this.driverId;
	}

	public void setDriverId(int driverId) {
		this.driverId = driverId;
	}

	public String getDriverName() {
		return this.driverName;
	}

	public void setDriverName(String driverName) {
		this.driverName = driverName;
	}

	public String getDriverDlNo() {
		return this.driverDlNo;
	}

	public void setDriverDlNo(String driverDlNo) {
		this.driverDlNo = driverDlNo;
	}

	public Date getDriverDlExpDate() {
		return this.driverDlExpDate;
	}

	public void setDriverDlExpDate(Date driverDlExpDate) {
		this.driverDlExpDate = driverDlExpDate;
	}

	public String getDriverAddress() {
		return this.driverAddress;
	}

	public void setDriverAddress(String driverAddress) {
		this.driverAddress = driverAddress;
	}

	public BigInteger getDriverMobileNo() {
		return this.driverMobileNo;
	}

	public void setDriverMobileNo(BigInteger driverMobileNo) {
		this.driverMobileNo = driverMobileNo;
	}

	public boolean getIsBlacklisted() {
		return this.isBlacklisted;
	}

	public void setIsBlacklisted(boolean isBlacklisted) {
		this.isBlacklisted = isBlacklisted;
	}

	public Set<TRefillingDetailsRf> getTRefillingDetailsRfCollection() {
		return this.tRefillingDetailsRfCollection;
	}

	public void setTRefillingDetailsRfCollection(Set<TRefillingDetailsRf> tRefillingDetailsRfCollection) {
		this.tRefillingDetailsRfCollection = tRefillingDetailsRfCollection;
	}

}
